package com.itheima.mm.controller;

import com.itheima.mm.entity.Result;
import com.itheima.mm.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import static com.itheima.mm.common.GlobalConst.SESSION_KEY_USER;

@RestController
@RequestMapping("/question")
public class QuestionController {
    @RequestMapping("/findListByPage")
    public Result findListByPage(HttpSession session, HttpServletResponse response){
        User user = (User) session.getAttribute(SESSION_KEY_USER);
        System.out.println("当前用户为:"+user);






        return new Result(true,"查询成功");
    }
}
